package com.fc.mall.dao;

import com.fc.mall.dto.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Sunny on 2019/5/29.
 */
public interface UmsMemberDao {
    List<UmsMemberFull> queryList(@Param("queryParam") UmsMemberQueryParam param, @Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize);
    List<UmsMemberCommission> queryMemberCommission(@Param("queryParam") UmsMemberCommissionParam param);

    /**
     * 会员粉丝查询
     * @param param
     * @return
     */
    List<UmsMemberFull> queryFansList(@Param("queryParam") UmsMemberFansQueryParam param);

    /**
     * 查询佣金不同状态的数量和金额
     * @param memberId
     * @return
     */
    UmsMemberCommissionStatusCount countStatusCommission(@Param("memberId") Long memberId);
}
